<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>获取Map类型的参数</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
  </head>
  
  <body>
  <table border="1px" align="center" width="50%">
  	<caption><b>两种获取Map类型的request_session_application域中的值的方式</b></caption>
  	<tr>
  		<td>struts2表达式</td>
  		<td>EL表达式</td>
  	</tr>
  	<tr>
  		<td><s:property value="#request.res"/></td>
  		<td>${requestScope.res}</td>
  	</tr>
  	<tr>
  		<td><s:property value="#session.ses"/></td>
  		<td>${sessionScope.ses}</td>
  	</tr>
  	<tr>
  		<td><s:property value="#application.app"/></td>
  		<td>${applicationScope.app}</td>
  	</tr>
  	<tr>
  		<td colspan="2">使用attr(不推荐): <s:property value="#attr.res"/> | <s:property value="#attr.ses"/> | <s:property value="#attr.app"/></td>
  	</tr>
  </table>
  
  <hr/>
  <s:debug></s:debug>
  
  </body>
</html>
